
package com.joysuch.wwyt.mh.service;

import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.mh.bean.MhAlarmMessageListBean;
import com.joysuch.wwyt.mh.bean.MhAlarmSettingBean;
import com.joysuch.wwyt.mh.entity.MhAlarmLimitConfig;
import com.joysuch.wwyt.mh.entity.MhAlarmMessage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

public interface MhAlarmMessageService {

    Page<MhAlarmMessageListBean> getByPage(Pageable pageable, String detail, Long alarmTypeId, Integer level, Integer state);

    MhAlarmMessageListBean getById(Long id);

    void save(Long id);

    ResultBean harzardQuery(LocalDateTime startTime, LocalDateTime endTime);

    void te();

    void saveAlarmSetting(List<MhAlarmSettingBean> beans);

    List<MhAlarmSettingBean> getAlarmSettings();

    void saveRiskDynamicRecord(List<MhAlarmMessage> messages, String orgCode, Long tenentId);

//    void generateAlarm(MhAlarmMessage save, MhAlarmLimitConfig config,Map<String, Map<Integer,String>> levelMaps);

    void test(Long id);
}
